package com.twt.sys.base;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.twt.model.base.BaseEntity;

/**
 * service 统一接口
 *
 * @ClassName:BaseService
 * @Author:TwT
 * @Date:2022/6/18 20:13
 * @Version:1.0
 **/
public interface BaseService<T extends BaseEntity> extends IService<T> {
    /**
     * @Description: 增
     * @Author: TWT
     * @Date: 1:20 2022/6/19
     * @param:[sysDictItem]
     * @return:void
     **/
    void add(T addVo);

    /**
     * @Description: 删
     * @Author: TWT
     * @Date: 1:20 2022/6/19
     * @param:[sysDictItem]
     * @return:void
     **/
    void deleteByIds(String ids);

    /**
     * @Description: 改
     * @Author: TWT
     * @Date: 1:20 2022/6/19
     * @param:[sysDictItem]
     * @return:void
     **/
    void editById(T editVo);

    /**
     * @Description: 分页查
     * @Author: TWT
     * @Date: 1:20 2022/6/19
     * @param:[sysDictItem]
     * @return:void
     **/
    Page<T> queryPageByQueryVo(Page<T> page, T po);
    /**
     * @Description: 查
     * @Author: TWT
     * @Date: 1:21 2022/6/19
     * @param:[id]
     * @return:T
     **/
    T queryOneById(String id);
}
